﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="QuanLyComment.aspx.cs"
    Inherits="Cucre.WebForm17" Title="MUARE.VN - Quản lý comment" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page_content">
        <div style="padding-left: 6px;">
            <div class="clear">
            </div>
            <div class="br">
            </div>
            <div class="content_home">
                <%-- vung th? hi?n menu --%>
                <div class="ch_1 font">
                    <div class="l">
                        <div class="ll">
                        </div>
                        <div class="lc">
                            <ul id="tab_menu">
                                <li id="tabmnu_1"><a href="QuanLy.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    Tin Khuyến Mãi&nbsp;</span><span class="tab_mnu_r"> </span></a></li>
                                <li id="tabmnu_4"><a href="quanlydondathang.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Đơn Đặt Hàng&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="tabmnu_2"><span class="tab_mnu_r"></span></li>
                                <li id="tabmnu_3"><a href="QuanLyDoanhNghiep.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Doanh Nghiệp&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li1"><a href="quanlythanhvien.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">THÀNH VIÊN&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li2"><a href="QuanLyComment.aspx"><span class="tab_mnu_l_curent"></span><span
                                    class="tab_mnu_c_curent">COMMENT&nbsp;</span> <span class="tab_mnu_r_curent"></span>
                                </a></li>
                                <li id="Li3"><a href="baocaothongke.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    THỐNG KÊ&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                            </ul>
                        </div>
                        <div class="lr">
                        </div>
                    </div>
                    <div class="r">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%-----------------  ------------------------------------------------------------%>
                <div class="ch_2">
                    <h1 align="center">
                        TRANG QUẢN LÝ CÁC COMMENT</h1>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <div style="height: 20px" align="center">
                            </div>
                            <div id="working_area">
                                <div>
                                    <div id="Select_City" align="center">
                                        Chọn thành phố : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="DropDownList1" runat="server" align="center" AutoPostBack="True"
                                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                            <asp:ListItem>Hà Nội</asp:ListItem>
                                            <asp:ListItem>TP HCM</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        Loại Tin Khuyến Mãi :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="LoaiTinKMDropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="LoaiTinKMDropDownList_SelectedIndexChanged">
                                            <asp:ListItem>Hàng Khuyến Mãi</asp:ListItem>
                                            <asp:ListItem>Sắp Khuyến Mãi</asp:ListItem>
                                            <asp:ListItem>Đã Kết Thúc</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <%-- vung gredview --%>
                                <div style="height: 20px" align="center">
                                </div>
                                <h3 style="margin-top: 20px">
                                    Danh Sách Các Tin Khuyến Mãi :
                                </h3>
                                <asp:Label ID="LabelDanhSachTinKhuyenMai" runat="server" ForeColor="Red"></asp:Label>
                                <div id="Gridview1" align="center">
                                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                                    </asp:ToolkitScriptManager>
                                    <asp:GridView ID="TinKM_Gridview" runat="server" AutoGenerateColumns="False" BorderStyle="Groove"
                                        AllowPaging="True" OnPageIndexChanging="TinKM_Gridview_PageIndexChanging" OnSelectedIndexChanging="TinKM_Gridview_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:BoundField DataField="IDPRODUCT" HeaderText="ID" ReadOnly="True" SortExpression="IDPRODUCT">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PROVIDER_NAME" HeaderText="Provider" ReadOnly="True" SortExpression="PROVIDER_NAME" />
                                            <asp:BoundField DataField="Name_Product" HeaderText="Name" ReadOnly="True" SortExpression="Name_Product" />
                                            <asp:BoundField DataField="TIME_START" HeaderText="Time_Start" ReadOnly="True" SortExpression="TIME_START" />
                                            <asp:BoundField DataField="TIME_STOP" HeaderText="Time_Stop" ReadOnly="True" SortExpression="TIME_STOP" />
                                            <asp:BoundField DataField="PRICE" HeaderText="Price" ReadOnly="True" SortExpression="PRICE" />
                                            <asp:BoundField DataField="CITY" HeaderText="City" ReadOnly="True" SortExpression="CITY" />
                                            <asp:CommandField SelectText="View Comment" ShowSelectButton="true" ItemStyle-ForeColor="Blue"
                                                ItemStyle-Font-Underline="True" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div style="height: 20px" align="center">
                                </div>
                                <div class="br">
                                    <hr />
                                </div>
                                <div align="left">
                                    <h4>
                                        Bình Luận cho sản Phẩm : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="TenSanPhamLabel1"
                                            runat="server"></asp:Label></h4>
                                </div>
                                <div align="center">
                                    <textarea id="AddComment_Textarea" runat="server" style="width: 600px"></textarea>
                                </div>
                                <div style="width: 600px" align="right">
                                    <br />
                                    <asp:Button ID="AddComment_bt" runat="server" Text="Add Comment" Width="120px" BorderStyle="Outset"
                                        BackColor="#DEDFFE" OnClick="AddComment_bt_Click" /></div>
                                <div class="br">
                                    <hr />
                                </div>
                                <div id="ListComment">
                                    <h4>
                                        Danh Sách Comment Cho S?n Ph?m : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="TenSanPhamLabel2"
                                            runat="server"></asp:Label></h4>
                                    <div align="center">
                                        <asp:Label ID="DanhSachComment" runat="server" Text="Ch?a có Comment nào cho Tin Khuy?n Mãi Này !!!!!"> 
                                           
                                        </asp:Label>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
            <%--???ng k? ngang phía d??i --%>
            <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
                height: 11px;">
            </div>
        </div>
    </div>
</asp:Content>
